package cn.faster;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication()
@EnableTransactionManagement
@MapperScan(basePackages = {"cn.faster.sys.mapper", "cn.faster.project.mapper"})
@EnableAsync
@Log4j2
public class SimpleFastGeneratorApplication {

    public static void main(String[] args) {
        SpringApplication.run(SimpleFastGeneratorApplication.class, args);
        System.out.println("//////////////////////////////////////////////////////////////////////////////\n" +
                "//                                    _ooOoo_                               //\n" +
                "//                                   o8888888o                              //\n" +
                "//                                   88\" . \"88                              //\n" +
                "//                                   (| ^_^ |)                              //\n" +
                "//                                   O\\  =  /O                              //\n" +
                "//                                ____/`---'\\____                           //\n" +
                "//                              .'  \\\\|     |//  `.                         //\n" +
                "//                             /  \\\\|||  :  |||//  \\                        //\n" +
                "//                            /  _||||| -:- |||||-  \\                       //\n" +
                "//                            |   | \\\\\\  -  /// |   |                       //\n" +
                "//                            | \\_|  ''\\---/''  |   |                       //\n" +
                "//                            \\  .-\\__  `-`  ___/-. /                       //\n" +
                "//                          ___`. .'  /--.--\\  `. . ___                     //\n" +
                "//                        .\"\" '<  `.___\\_<|>_/___.'  >'\"\".                  //\n" +
                "//                      | | :  `- \\`.;`\\ _ /`;.`/ - ` : | |                 //\n" +
                "//                      \\  \\ `-.   \\_ __\\ /__ _/   .-` /  /                 //\n" +
                "//                ========`-.____`-.___\\_____/___.-`____.-'========         //\n" +
                "//                                     `=---='                              //\n" +
                "//                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        //\n" +
                "//                      佛祖保佑       永不宕机     永无BUG                    //\n" +
                "//////////////////////////////////////////////////////////////////////////////");
        log.info("=======Spring-framework启动成功！=======");
    }

}
